package com.songminju.jsong_httpserver.server.bio;

import java.net.Socket;

public class RequestConnection {
	private Socket socket;
	private long createTime;
	private long usedTime;
	
	public RequestConnection(Socket socket) {
		this.socket = socket;
		this.createTime = System.currentTimeMillis();
		this.usedTime = this.createTime;
	}

	public Socket getSocket() {
		return socket;
	}

	public long getCreateTime() {
		return createTime;
	}

	public long getUsedTime() {
		return usedTime;
	}
	
	public void updateUsedTime() {
		this.usedTime = System.currentTimeMillis();
	}
	
}
